home *** CD-ROM | disk | FTP | other *** search
- Path: news.mistral.co.uk!usenet
- From: ghira@mistral.co.uk (Adam Atkinson)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Feeling very confused with SAS/C, NDK 3.1, etc.
- Date: 25 Mar 96 22:33:01 +0000
- Organization: Mistral Internet (Brighton)
- Message-ID: <3224.6658T1353T50@mistral.co.uk>
- References: <1777.6656T1015T1276@mistral.co.uk> <DotxBJ.HqE@unx.sas.com>
- NNTP-Posting-Host: l65.mistral.co.uk
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
- >>I've had NDK 3.1 thanks to some magazine cover disks for a couple of years
- >>now. Should I replace the SAS/C 6.56 includes with the NDK3.1 ones, or
- >>would this be dangerous?
-
- >I don't know what is in the NDK (I've never seen it), but the include files
- >provided with SAS/C fall into several categories:
-
- [snip]
-
- > everything else ==> Commodore-supplied system header files
-
- >I can't see how replacing this structure with the NDK structure GAINS
- >you anything. You will probably LOSE the ability to do some things.
-
- I expressed myself poorly. I should have said "is it worth replacing the
- commodore-supplied files in SAS C 5.56 with later versions from NDK 3.1,
- where these exist?" Actually, I haven't been able to find any concrete
- cases of this, so the point is moot. I suspect the answer would be "yes",
- though.
-
- >>Where should I put third party includes. I've copied all the MUI includes
- >>etc. into the sensible places in my includes directory, but I don't know if
- >>this is what I'm expected to do. It seems more convenient than leaving 3rd
- >>party includes scattered all over the place and having to specify exact
- >>paths for them all the time.
-
- >I suggest putting them somewhere else BESIDES in your SC:INCLUDE directory.
- >The SC: directory should only include SAS/C-provided files, so if you need
- >to reinstall the product, you will not have to figure out what parts came
- >from the installation disks and what parts didn't. You can make INCLUDE:
- >a multi-directory assign, or you can add the other directory to your SCOPTS
- >file with an INCLUDEDIRECTORY option.
-
- Ok, that makes sense. Will do. (All I have so far is mui and rexxtools)
-
- Are .fd files something I need? I remember workbench 1.3 had them and
- NDK3.1 has lots. I don't currently have any idea what they're for.
-
- >>Should I construct a new GST to reflect my new setup? I was asked if I'd
- >>like a big GST during the 6.50 setup, and I said yes. I get the impression
- >>I may need to re-create it, but I'm really not sure.
-
- >Personally, I create a new GST for every project, and set up my make file to
- >build it. If you use the default GST, it will still work even if you add
- >other header files, but it could be made faster if you include all the
- >headers you are likely to use. BE CAREFUL when including headers: you cannot
- >include header files that define functions or data. An inline function DOES
- >count as a function definition. Data can be DECLARED in a header file that
- >is included in a GST, but not DEFINED there. A data declaration has the
- >"extern" keyword on it and no initializer value. You also need to be careful
- >that the header included always defines things to the same value every time
- >the file is compiled: i.e. the preprocessor can't change the way the file is
- >compiled in different .c files.
-
- >There is more information on this in the GST section of the Library Reference
- >Manual.
-
- Yes. I've tried reading it and had no idea what was going on. I imagine I
- will eventually realise GSTs are dead useful, but I suppose I'll come to
- that later.
-
- Adam Atkinson - ghira@mistral.co.uk / etlaman@etlxdmx.ericsson.se
- If I were a fuzzy-wuzzy bear, 3 would be a perfect square.
- If I were a bumble bee, Z would be a UFD.
-
-
-